package Day04;
import javax.xml.bind.SchemaOutputResolver;
import java.time.Month;
import java.util.Scanner;

public class 拓展 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
       /* int num=0;
        if(num>0){
            System.out.println("+");
        }else if(num<0){
            System.out.println("-");
        }else {
            System.out.println("0");
        }
        */
        //Scanner scan = new Scanner(System.in);
        System.out.println("请输入年份:");
        int year=scan.nextInt();
        System.out.println("请输入月份：");
        int minth=scan.nextInt();
        int days=0;
        switch (minth){
            case 1:

            case 3:

            case 5:

            case 7:

            case 8:

            case 10:

            case 12:
                days=31;
                break;
            case 4:

            case 6:

            case 9:

            case 11:
                days=30;
            break;
            case 2:
                if((year%4==0&&year%100==0)||year%400!=0){
                    System.out.println("29");
                }else{
                    System.out.println("28");
                }
                System.out.println(year+"年的"+minth+"月份"+days+"天");

        }


    }
}
